<!doctype html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
        <meta name="format-detection" content="telephone=no"/>
        <title>demo</title>

        <!-- add empty js -->
        <script type="text/javascript" src="app-plugin.js"></script>
        
        <script type="text/javascript">
            function getLocation(){
                window.plugins.infoPlugin.location(function(data){
                    alert(data)
                },function(data){
                    
                });
            }
            function getVersion(){
                window.plugins.infoPlugin.getVersion(function(version){
                    alert(version)
                });
            }
            function getRegistrationID(){
                if(window.plugins && window.plugins.infoPlugin && window.plugins.infoPlugin.getRegistrationID){
                    window.plugins.infoPlugin.getRegistrationID(function(uuid){
                        alert(uuid)
                    });
                }
            }
        
        </script>
    </head>
    <body>
        index.html
        <button onclick="getLocation()">getLocation</button>
        <button onclick="getVersion()">getVersion</button>
        <button onclick="getRegistrationID()">getRegistrationID</button>
    </body>
</html>
